from glpk import *

print "\n>> iniciar:\n"
print "\n>> carregar arquivo:\n"
problem = glpk("scheduling.mod","dados@scheduling.dat")
print "\n>> resolver:\n"
problem.solve()
sol1 = problem.solution()
print "\n>> modificacao:\n"
print "q[1]=5"
problem.q[1] = 5
print "\n>> atualizacao:\n"
problem.update()
print "\n>> resolver:\n"
problem.solve()
sol2 = problem.solution()
print "\n>> imprimir solucoes:\n"
print "solucao 1:", sol1
print "solucao 2:", sol2

